home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / layout / nsIScrollBoxObject.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  9KB  |  240 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIScrollBoxObject.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIScrollBoxObject_h__
  6. #define __gen_nsIScrollBoxObject_h__
  7.  
  8.  
  9. #ifndef __gen_nsIBoxObject_h__
  10. #include "nsIBoxObject.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMElement; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIScrollBoxObject */
  21. #define NS_ISCROLLBOXOBJECT_IID_STR "56e2ada8-4631-11d4-ba11-001083023c1e"
  22.  
  23. #define NS_ISCROLLBOXOBJECT_IID \
  24.   {0x56e2ada8, 0x4631, 0x11d4, \
  25.     { 0xba, 0x11, 0x00, 0x10, 0x83, 0x02, 0x3c, 0x1e }}
  26.  
  27. class NS_NO_VTABLE nsIScrollBoxObject : public nsISupports {
  28.  public: 
  29.  
  30.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCROLLBOXOBJECT_IID)
  31.  
  32.   /**
  33.    * Scroll to the given coordinates, in css pixels.
  34.    * (0,0) will put the top left corner of the scrolled element's padding-box
  35.    * at the top left corner of the scrollport (which is its inner-border-box).
  36.    * Values will be clamped to legal values.
  37.    */
  38.   /* void scrollTo (in long x, in long y); */
  39.   NS_IMETHOD ScrollTo(PRInt32 x, PRInt32 y) = 0;
  40.  
  41.   /**
  42.    * Scroll the given amount of device pixels to the right and down.
  43.    * Values will be clamped to make the resuling position legal.
  44.    */
  45.   /* void scrollBy (in long dx, in long dy); */
  46.   NS_IMETHOD ScrollBy(PRInt32 dx, PRInt32 dy) = 0;
  47.  
  48.   /* void scrollByLine (in long dlines); */
  49.   NS_IMETHOD ScrollByLine(PRInt32 dlines) = 0;
  50.  
  51.   /* void scrollByIndex (in long dindexes); */
  52.   NS_IMETHOD ScrollByIndex(PRInt32 dindexes) = 0;
  53.  
  54.   /* void scrollToLine (in long line); */
  55.   NS_IMETHOD ScrollToLine(PRInt32 line) = 0;
  56.  
  57.   /* void scrollToElement (in nsIDOMElement child); */
  58.   NS_IMETHOD ScrollToElement(nsIDOMElement *child) = 0;
  59.  
  60.   /* void scrollToIndex (in long index); */
  61.   NS_IMETHOD ScrollToIndex(PRInt32 index) = 0;
  62.  
  63.   /**
  64.    * Get the current scroll position in css pixels.
  65.    * @see scrollTo for the definition of x and y.
  66.    */
  67.   /* void getPosition (out long x, out long y); */
  68.   NS_IMETHOD GetPosition(PRInt32 *x, PRInt32 *y) = 0;
  69.  
  70.   /* void getScrolledSize (out long width, out long height); */
  71.   NS_IMETHOD GetScrolledSize(PRInt32 *width, PRInt32 *height) = 0;
  72.  
  73.   /* void ensureElementIsVisible (in nsIDOMElement child); */
  74.   NS_IMETHOD EnsureElementIsVisible(nsIDOMElement *child) = 0;
  75.  
  76.   /* void ensureIndexIsVisible (in long index); */
  77.   NS_IMETHOD EnsureIndexIsVisible(PRInt32 index) = 0;
  78.  
  79.   /* void ensureLineIsVisible (in long line); */
  80.   NS_IMETHOD EnsureLineIsVisible(PRInt32 line) = 0;
  81.  
  82. };
  83.  
  84. /* Use this macro when declaring classes that implement this interface. */
  85. #define NS_DECL_NSISCROLLBOXOBJECT \
  86.   NS_IMETHOD ScrollTo(PRInt32 x, PRInt32 y); \
  87.   NS_IMETHOD ScrollBy(PRInt32 dx, PRInt32 dy); \
  88.   NS_IMETHOD ScrollByLine(PRInt32 dlines); \
  89.   NS_IMETHOD ScrollByIndex(PRInt32 dindexes); \
  90.   NS_IMETHOD ScrollToLine(PRInt32 line); \
  91.   NS_IMETHOD ScrollToElement(nsIDOMElement *child); \
  92.   NS_IMETHOD ScrollToIndex(PRInt32 index); \
  93.   NS_IMETHOD GetPosition(PRInt32 *x, PRInt32 *y); \
  94.   NS_IMETHOD GetScrolledSize(PRInt32 *width, PRInt32 *height); \
  95.   NS_IMETHOD EnsureElementIsVisible(nsIDOMElement *child); \
  96.   NS_IMETHOD EnsureIndexIsVisible(PRInt32 index); \
  97.   NS_IMETHOD EnsureLineIsVisible(PRInt32 line); 
  98.  
  99. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  100. #define NS_FORWARD_NSISCROLLBOXOBJECT(_to) \
  101.   NS_IMETHOD ScrollTo(PRInt32 x, PRInt32 y) { return _to ScrollTo(x, y); } \
  102.   NS_IMETHOD ScrollBy(PRInt32 dx, PRInt32 dy) { return _to ScrollBy(dx, dy); } \
  103.   NS_IMETHOD ScrollByLine(PRInt32 dlines) { return _to ScrollByLine(dlines); } \
  104.   NS_IMETHOD ScrollByIndex(PRInt32 dindexes) { return _to ScrollByIndex(dindexes); } \
  105.   NS_IMETHOD ScrollToLine(PRInt32 line) { return _to ScrollToLine(line); } \
  106.   NS_IMETHOD ScrollToElement(nsIDOMElement *child) { return _to ScrollToElement(child); } \
  107.   NS_IMETHOD ScrollToIndex(PRInt32 index) { return _to ScrollToIndex(index); } \
  108.   NS_IMETHOD GetPosition(PRInt32 *x, PRInt32 *y) { return _to GetPosition(x, y); } \
  109.   NS_IMETHOD GetScrolledSize(PRInt32 *width, PRInt32 *height) { return _to GetScrolledSize(width, height); } \
  110.   NS_IMETHOD EnsureElementIsVisible(nsIDOMElement *child) { return _to EnsureElementIsVisible(child); } \
  111.   NS_IMETHOD EnsureIndexIsVisible(PRInt32 index) { return _to EnsureIndexIsVisible(index); } \
  112.   NS_IMETHOD EnsureLineIsVisible(PRInt32 line) { return _to EnsureLineIsVisible(line); } 
  113.  
  114. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  115. #define NS_FORWARD_SAFE_NSISCROLLBOXOBJECT(_to) \
  116.   NS_IMETHOD ScrollTo(PRInt32 x, PRInt32 y) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollTo(x, y); } \
  117.   NS_IMETHOD ScrollBy(PRInt32 dx, PRInt32 dy) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollBy(dx, dy); } \
  118.   NS_IMETHOD ScrollByLine(PRInt32 dlines) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByLine(dlines); } \
  119.   NS_IMETHOD ScrollByIndex(PRInt32 dindexes) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByIndex(dindexes); } \
  120.   NS_IMETHOD ScrollToLine(PRInt32 line) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToLine(line); } \
  121.   NS_IMETHOD ScrollToElement(nsIDOMElement *child) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToElement(child); } \
  122.   NS_IMETHOD ScrollToIndex(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToIndex(index); } \
  123.   NS_IMETHOD GetPosition(PRInt32 *x, PRInt32 *y) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPosition(x, y); } \
  124.   NS_IMETHOD GetScrolledSize(PRInt32 *width, PRInt32 *height) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScrolledSize(width, height); } \
  125.   NS_IMETHOD EnsureElementIsVisible(nsIDOMElement *child) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureElementIsVisible(child); } \
  126.   NS_IMETHOD EnsureIndexIsVisible(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureIndexIsVisible(index); } \
  127.   NS_IMETHOD EnsureLineIsVisible(PRInt32 line) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureLineIsVisible(line); } 
  128.  
  129. #if 0
  130. /* Use the code below as a template for the implementation class for this interface. */
  131.  
  132. /* Header file */
  133. class nsScrollBoxObject : public nsIScrollBoxObject
  134. {
  135. public:
  136.   NS_DECL_ISUPPORTS
  137.   NS_DECL_NSISCROLLBOXOBJECT
  138.  
  139.   nsScrollBoxObject();
  140.  
  141. private:
  142.   ~nsScrollBoxObject();
  143.  
  144. protected:
  145.   /* additional members */
  146. };
  147.  
  148. /* Implementation file */
  149. NS_IMPL_ISUPPORTS1(nsScrollBoxObject, nsIScrollBoxObject)
  150.  
  151. nsScrollBoxObject::nsScrollBoxObject()
  152. {
  153.   /* member initializers and constructor code */
  154. }
  155.  
  156. nsScrollBoxObject::~nsScrollBoxObject()
  157. {
  158.   /* destructor code */
  159. }
  160.  
  161. /* void scrollTo (in long x, in long y); */
  162. NS_IMETHODIMP nsScrollBoxObject::ScrollTo(PRInt32 x, PRInt32 y)
  163. {
  164.     return NS_ERROR_NOT_IMPLEMENTED;
  165. }
  166.  
  167. /* void scrollBy (in long dx, in long dy); */
  168. NS_IMETHODIMP nsScrollBoxObject::ScrollBy(PRInt32 dx, PRInt32 dy)
  169. {
  170.     return NS_ERROR_NOT_IMPLEMENTED;
  171. }
  172.  
  173. /* void scrollByLine (in long dlines); */
  174. NS_IMETHODIMP nsScrollBoxObject::ScrollByLine(PRInt32 dlines)
  175. {
  176.     return NS_ERROR_NOT_IMPLEMENTED;
  177. }
  178.  
  179. /* void scrollByIndex (in long dindexes); */
  180. NS_IMETHODIMP nsScrollBoxObject::ScrollByIndex(PRInt32 dindexes)
  181. {
  182.     return NS_ERROR_NOT_IMPLEMENTED;
  183. }
  184.  
  185. /* void scrollToLine (in long line); */
  186. NS_IMETHODIMP nsScrollBoxObject::ScrollToLine(PRInt32 line)
  187. {
  188.     return NS_ERROR_NOT_IMPLEMENTED;
  189. }
  190.  
  191. /* void scrollToElement (in nsIDOMElement child); */
  192. NS_IMETHODIMP nsScrollBoxObject::ScrollToElement(nsIDOMElement *child)
  193. {
  194.     return NS_ERROR_NOT_IMPLEMENTED;
  195. }
  196.  
  197. /* void scrollToIndex (in long index); */
  198. NS_IMETHODIMP nsScrollBoxObject::ScrollToIndex(PRInt32 index)
  199. {
  200.     return NS_ERROR_NOT_IMPLEMENTED;
  201. }
  202.  
  203. /* void getPosition (out long x, out long y); */
  204. NS_IMETHODIMP nsScrollBoxObject::GetPosition(PRInt32 *x, PRInt32 *y)
  205. {
  206.     return NS_ERROR_NOT_IMPLEMENTED;
  207. }
  208.  
  209. /* void getScrolledSize (out long width, out long height); */
  210. NS_IMETHODIMP nsScrollBoxObject::GetScrolledSize(PRInt32 *width, PRInt32 *height)
  211. {
  212.     return NS_ERROR_NOT_IMPLEMENTED;
  213. }
  214.  
  215. /* void ensureElementIsVisible (in nsIDOMElement child); */
  216. NS_IMETHODIMP nsScrollBoxObject::EnsureElementIsVisible(nsIDOMElement *child)
  217. {
  218.     return NS_ERROR_NOT_IMPLEMENTED;
  219. }
  220.  
  221. /* void ensureIndexIsVisible (in long index); */
  222. NS_IMETHODIMP nsScrollBoxObject::EnsureIndexIsVisible(PRInt32 index)
  223. {
  224.     return NS_ERROR_NOT_IMPLEMENTED;
  225. }
  226.  
  227. /* void ensureLineIsVisible (in long line); */
  228. NS_IMETHODIMP nsScrollBoxObject::EnsureLineIsVisible(PRInt32 line)
  229. {
  230.     return NS_ERROR_NOT_IMPLEMENTED;
  231. }
  232.  
  233. /* End of implementation class template. */
  234. #endif
  235.  
  236. nsresult
  237. NS_NewScrollBoxObject(nsIBoxObject** aResult);
  238.  
  239. #endif /* __gen_nsIScrollBoxObject_h__ */
  240.